﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/functon.master" AutoEventWireup="true" CodeFile="orderroom.aspx.cs" Inherits="orderroom" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
     <link rel="stylesheet"  href="../css/oderoom.css">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="allhotel">
        <div class="hotelpic">
            <asp:Image ID="Image1" runat="server" class="himg" Height="492px" Width="377px" />
        </div>
        <div class="hoteloder">
            <div class="roomtype">
                <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1" DataTextField="rname" DataValueField="rname" CssClass="btn1" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"></asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ORDL1 %>" SelectCommand="SELECT [rname] FROM [rtype]"></asp:SqlDataSource>
                <asp:Button ID="Button1" runat="server" Text="刷新" CssClass="btn1" OnClick="Button1_Click" />
            </div>
            <div class="oroominfor">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Class="gvdcenter">
                    <Columns>
                         <asp:BoundField DataField="HM_RCategoryId" HeaderText="房间号" />
                        <asp:BoundField DataField="HM_RName" HeaderText="房间类型" />
                        <asp:BoundField DataField="HM_RArea" HeaderText="房间面积(㎡)" />
                        <asp:BoundField DataField="HM_RBedNum" HeaderText="床位数" />
                        <asp:BoundField DataField="HM_RPrice" HeaderText="房间价格（天/元）" />
                        <asp:TemplateField>
                            <HeaderTemplate>
                                空调
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("HM_RAirCondition").ToString().Equals("0") ? "有" : "无"%>
                            </ItemTemplate> 
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                有线电视
                            </HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("HM_RTV").ToString().Equals("0") ? "有" : "无"%>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                         <FooterStyle BackColor="White" ForeColor="#000066" />
                         <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                         <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                         <RowStyle ForeColor="#000066" />
                         <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                         <SortedAscendingCellStyle BackColor="#F1F1F1" />
                         <SortedAscendingHeaderStyle BackColor="#007DBB" />
                         <SortedDescendingCellStyle BackColor="#CAC9C9" />
                         <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
            </div>
            <div class="roomid">
                <asp:DropDownList ID="DropDownList2" runat="server" CssClass="btn1"></asp:DropDownList>
            </div>
            <div class="selectr">
                <asp:Button ID="btn" runat="server" Text="预定" class="btn1" OnClick="btn_Click"/>
            </div>
        </div>
    </div>

</asp:Content>

